from django.db import models

# Create your models here.


class auto(models.Model):
    title = models.CharField(max_length=100)





class Author(models.Model):

    SY=(
        (1,'启用'),
        (0,'禁用')
    )
    name = models.CharField(max_length=100)
    username = models.CharField(max_length=50)
    type=models.ForeignKey('auto', on_delete=models.CASCADE)
    phone=models.CharField(max_length=15)
    status=models.IntegerField(choices=SY)
    stime=models.DateTimeField()







